<template>
  <div class="orderComfirm">
    <!-- 引入头部组件 -->
    <div class="headercom">
      <my-header title="订单确认">
        <!-- 左侧区域内容 -->
        <template #left>
          <div class="iconL" @click="next">
            <img src="../../../static/images/orderComfirm/go.png" alt="" />
          </div>
        </template>
        <!-- 右侧区域内容 -->
        <template #right>
          <div class="iconR">
            <img src="../../../static/images/orderComfirm/origin.png" alt="" />
          </div>
        </template>
      </my-header>
    </div>

    <!-- 收货人信息 -->
    <div class="addressContent">
      <div class="userList">
        <div class="user">收货人：<span>曾树俊</span></div>
        <div class="phoneNumber">17707078901</div>
      </div>
      <!-- 地址图标 -->
      <!-- 左边 -->
      <div class="iconL">
        <img src="../../../static/images/orderComfirm/address.png" alt="" />
      </div>
      <!-- 右边 -->
      <div class="iconR">
        <img src="../../../static/images/orderComfirm/next.png" alt="" />
      </div>
      <!-- 具体地址 -->
      <div class="address">
        收获地址：<span>广东省 深圳市 宝安区 石岩街道 应人石</span>
      </div>
      <!-- 彩虹条 -->
      <div class="rainbow">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
      </div>
    </div>
    <div class="only"></div>
    <!-- 订单列表 -->
    <div class="orderList">
      <!-- 上 -->
      <div class="listTop">
        <!-- 左 -->
        <div class="listImg">
          <img src="../../../static/images/orderComfirm/duck.png" alt="" />
        </div>
        <!-- 右 -->
        <div class="listRight">
          <span>ins卧室少女LED小夜灯可爱小鸭子房</span>
          <span>间床头宿舍新款创意礼物</span>
        </div>
        <div class="price">
          <span>￥9.90</span>
          <span>x1</span>
        </div>
      </div>
      <!-- 下 -->
      <div class="listBottom">
        <div>小计：</div>
        <span>￥9.90</span>
      </div>
    </div>
    <div class="only"></div>

    <!-- 没有优惠卷 -->
    <div class="no">
      <div class="font" @click="next1">没有有效优惠卷</div>
      <img
        src="../../../static/images/orderComfirm/next.png"
        alt=""
        @click="next1"
      />
    </div>

    <div class="only"></div>
    <!-- 留言 -->
    <div class="textcontent">
      <div class="mai">买家留言：<span>(选填)对本次交易的说明</span></div>
    </div>
    <div class="only1"></div>
    <!-- 提交订单 -->
    <van-submit-bar
      :price="990"
      button-text="提交订单"
      type="primary"
      @submit="onSubmit"
      square
    />
  </div>
</template>

<script>
import myHeader from "../../components/myHeader/myHeader.vue";
export default {
  components: { myHeader },
  methods: {
    onSubmit() {
        this.$router.push({ path: "/orderPay" }).catch(err => {});
    },
    next() {
      this.$router.go(-1);
    },
    next1() {
      this.$router.push({ path: "/coupon" }).catch(err => {});
    },
  },
};
</script>
<style lang="less" scoped>
.orderComfirm {
  // 头部
  .headercom {
    width: 750px;
    height: 128px;
    background: #ffffff;
    box-shadow: -1px 1px 1px 0px rgba(0, 0, 0, 0.24);
    // 左侧箭头
    .iconL {
      img {
        width: 57px;
        height: 21px;
      }
    }
    // 右侧圆点
    .iconR {
      img {
        width: 52px;
        height: 12px;
      }
    }
  }
  // 地址
  .addressContent {
    position: relative;
    //地址图标
    .iconL {
      width: 34px;
      height: 48px;
      position: absolute;
      left: 26px;
      top: 64px;
      bottom: 63px;
      right: 690px;
    }
    // 右边
    .iconR {
      width: 18px;
      height: 33px;
      position: absolute;
      top: 62px;
      left: 707px;
      bottom: 82px;
      right: 25px;
    }
    .userList {
      display: flex;
      .user {
        margin-top: 19px;
        margin-left: 91px;
        width: 200px;
        height: 27px;
        font-size: 28px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #000000;
        line-height: 60px;
        opacity: 0.8;
      }
      .phoneNumber {
        margin-left: 200px;
        margin-top: 22px;
        width: 178px;
        height: 22px;
        font-size: 28px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #000000;
        line-height: 60px;
        opacity: 0.8;
      }
    }
    // 地址
    .address {
      width: 536px;
      height: 63px;
      font-size: 28px;
      font-family: PingFang SC;
      font-weight: 500;
      color: #000000;
      line-height: 36px;
      opacity: 0.8;
      margin-top: 48px;
      margin-left: 90px;
    }
    //彩虹条
    .rainbow {
      margin-left: 5px;
      width: 744px;
      height: 6px;
      span {
        display: inline-block;
        height: 6px;
        width: 30px;
        margin-right: 3px;
      }
      span:first-child {
        background-color: #ff867c;
      }
      span:nth-child(2) {
        background-color: #6087ff;
      }
      span:nth-child(4) {
        background-color: #6087ff;
      }
      span:nth-child(6) {
        background-color: #6087ff;
      }
      span:nth-child(8) {
        background-color: #6087ff;
      }
      span:nth-child(10) {
        background-color: #6087ff;
      }
      span:nth-child(12) {
        background-color: #6087ff;
      }
      span:nth-child(14) {
        background-color: #6087ff;
      }
      span:nth-child(16) {
        background-color: #6087ff;
      }
      span:nth-child(3) {
        background-color: #ff867c;
      }
      span:nth-child(5) {
        background-color: #ff867c;
      }
      span:nth-child(7) {
        background-color: #ff867c;
      }
      span:nth-child(9) {
        background-color: #ff867c;
      }
      span:nth-child(11) {
        background-color: #ff867c;
      }
      span:nth-child(13) {
        background-color: #ff867c;
      }
      span:nth-child(15) {
        background-color: #ff867c;
      }
    }
  }
  .only {
    background-color: #f6f6f6;
    display: inline-block;
    width: 100%;
    height: 20px;
  }
  .only1 {
    background-color: #f6f6f6;
    display: inline-block;
    width: 100%;
    height: 200px;
  }
  // 订单列表
  .orderList {
    width: 750px;
    height: 270px;
    .listTop {
      .listImg {
        display: inline-block;
        img {
          width: 158px;
          height: 168px;
          padding-top: 25px;
          margin-left: 25px;
        }
      }
      .listRight {
        width: 457px;
        height: 63px;
        font-size: 28px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #000000;
        line-height: 36px;
        opacity: 0.8;
        margin-left: 202px;
        margin-top: -160px;
        margin-bottom: 40px;
      }
    }
    .price {
      span:first-child {
        width: 83px;
        height: 23px;
        font-size: 28px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #000000;
        line-height: 36px;
        margin-left: 202px;
      }
      span:last-child {
        width: 29px;
        height: 20px;
        font-size: 28px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #000000;
        line-height: 36px;
        margin-left: 395px;
      }
    }
    .listBottom {
      border-top: 1px solid rgb(214, 213, 213);
      margin-top: 42px;
      display: flex;
      div {
        width: 90px;
        height: 27px;
        font-size: 28px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #000000;
        line-height: 36px;
        margin-left: 530px;
        margin-top: 15px;
        margin-right: -15px;
      }
      span {
        width: 83px;
        height: 23px;
        font-size: 28px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #eb291d;
        line-height: 36px;
        margin-top: 16px;
      }
    }
  }
  .no {
    margin-top: -10px;
    // background-color: pink;
    height: 62px;
    .font {
      width: 201px;
      height: 28px;
      font-size: 28px;
      font-family: PingFang SC;
      line-height: 32px;
      opacity: 0.7;
      color: #555454;
      margin-left: 482px;
      padding-top: 32px;
    }
    img {
      width: 18px;
      height: 33px;
      margin-left: 707px;
    }
  }
  //留言
  .textcontent {
    width: 750px;
    height: 232px;
    .mai {
      margin-left: 24px;
      padding-top: 19px;
      width: 490px;
      height: 28px;
      font-size: 28px;
      font-family: PingFang SC;
      font-weight: bold;
      color: #000000;
      line-height: 36px;
      span {
        color: #b7b7b7;
      }
    }
  }
  button {
    width: 220px;
    height: 98px;
    background: #eb291d;
  }
  /deep/.van-button--round {
    border-radius: 0px;
    margin-right: -31px;
  }

  /deep/.van-submit-bar__text {
    font-size: 28px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #0d0d0d;
  }
}
</style>
